<template>
	<view class="online">
		<view class="top">
			<image class="header-img" src="../../../static/luckDraw/header.png" mode=""></image>
			<text>蔡医生服务中</text>
		</view>
		<button type="default" @click="show=true" style="margin-top: 100rpx;">返回弹框</button>
		<!-- 返回弹框 -->
		<u-popup :show="show" v-model="show" mode="center" :round="true" borderRadius="10">
		            <view style="width: 670rpx;height: 296rpx;background: #FFFFFF;padding: 40rpx;">
		                <view class="tips">
		                	<text>确认离开吗？</text>
		                	<text>离开之后，再次返回会打开新的页面。</text>
		                </view>
						<view class="tips-bottom">
							<text @click="show=false">留下继续</text>
							<text @click="show=false">确认离开</text>
						</view>
		            </view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show:false,//弹框
			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="less">
	.top {
		width: 100%;
		height: 60rpx;
		background-color: #1297F1;
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		.header-img {
			width: 52rpx;
			height: 52rpx;
			border-radius: 50%;
			margin-left: 40rpx;
			margin-right: 10rpx;
		}

		text {
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #FFFFFF;
		}
	}
	.tips{
		padding-bottom: 30rpx;
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		line-height: 52rpx;
		border-bottom: 1px solid #F2F2F2;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		text:first-child{
			font-size: 36rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #333333;
		}
		text:last-child{
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #999999;
		}
	}
	.tips-bottom{
		height: 94rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		text:first-child{
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 36rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #FF7200;
			flex: 1;
			border-right: 1px solid #F2F2F2;
		}
		text:last-child{
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 36rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #999999;
			flex: 1;
		}
	}

</style>
